![]() |
PATH![]() |
Applications can obtain information about the presence, version, and attributes of USB software on Macintosh computers by using the Gestalt Manager routines and USB gestalt selectors. The Gestalt Manager is defined in Inside Macintosh: Overview .
The gestaltUSBAttr, gestaltUSBPresent, gestaltUSBHasIsoch, and gestaltUSBVersionGestalt selectors are defined for Macintosh USB software as follows:
gestaltUSBAttr = `usb `USB attributes
gestaltUSBPresent = 0Bit 0 is set if USB software is present
gestaltUSBHasIsoch = 1Bit 1 is set is USB software supports
isochronous transfers
gestaltUSBVersion = `usbv`USB version number
The gestaltUSBVersion selector returns the version of the USB software in a 32-bit format as follows:
MMmmRRss
Previous | Back Up One Level | Next |